package com.primeton.eos.oss.model.dao;

import org.springframework.stereotype.Repository;
import com.eos.spring.dao.AbstractDatabaseDao;
import com.eos.spring.dao.CriteriaBuilder;
import com.eos.system.utility.PageResultList;
import com.primeton.eos.oss.model.newdataset.CrecAccountHis;

@Repository
public class CrecAccountHisDao extends AbstractDatabaseDao {

    public PageResultList<CrecAccountHis> queryCrecAccountHissWithPage(String password,  int pageSize, int pageIndex) {
        CriteriaBuilder cb = new CriteriaBuilder(CrecAccountHis.QNAME);

  		if(null!=password&&!"".equals(password)){
 			cb.and("password", password);
 		}
 		return queryEntitiesByCriteriaWithPage(cb.build(), pageIndex, pageSize);
	}
    
    public CrecAccountHisDao() {
		super.setDataSourceName("mdmpub");
	}
}






